package com.yjd.bi.canal.model;

import com.yjd.comm.base.model.Model;
import com.yjd.comm.util.StringUtil;

public class Records extends Model {
	private String field;
	private String value;
	public String getField() {
		return field;
	}
	public void setField(String field) {
		this.field = field;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public Records(String field,String value){
		this.field=field;
		this.value=value;
	}
	public Records(){
		
	}
	/**
	 * field,value任何一者为空时返回true
	 * @return
	 */
	public boolean isEmpty(){
		return StringUtil.isEmpty(this.field)||StringUtil.isEmpty(this.value);
	}
}
